<template>
  <div class="py-box">

    <van-tabs v-model="active">
      <van-tab
        title="朋友圈"
        class="py"
      >
        <!--  -->
        <div class="p-tit">
          <div class="tit-img"></div>
          <div class="tit-p">
            <h3>探长 &nbsp;&nbsp;<span>官方</span></h3>
            <p>5小时前</p>
          </div>

        </div>

        <!--  -->
        <div class="p-tex">恭喜@徐三岁，赠送幸运礼物命中“天赏”，带走奖池内
          的全部奖励！</div>
        <!--  -->
        <div class="d-one">
          <div class="one-img"></div>
          <div class="one-p">
            <h3>小三岁&nbsp;&nbsp; <span>&nbsp;♀&nbsp;</span></h3>
            <p>测试测试</p>
          </div>
        </div>
        <!--  -->
        <div class="d-tow">
          <div class="tow-box">
            <div class="tow-img"></div>
            <div class="tow-p">
              <h3>徐三岁</h3>
              <p> <span>&nbsp;&nbsp;♂&nbsp;&nbsp;</span> 测测测测测</p>
            </div>
          </div>
        </div>
      </van-tab>
      <van-tab
        title="广场"
        class="gc"
      >广场</van-tab>

    </van-tabs>
    <!-- 返回按键 -->
   <div class="lef" @click="$router.back()">
    <van-icon name="arrow-left"  />
   </div>
    <router-link to="pub">
        <div class="click">
            <van-icon name="add" size="60px" />
        </div>
    </router-link>
        
   
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 2,
    };
  },
};
</script>

<style lang="scss" >
.py-box {
  color: white;
  
  .van-tabs__wrap {
    width: 40%;
    margin: 0 auto;
    height: 80px;
    border: none;
    // background-color: black;

    // font-size: 40px;
  }
  .van-tabs__nav .van-tabs__nav--line{
    border: none;
  }
   .van-tab {
    font-size: 32px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid black;
    // border: none;
    
  }
  .van-tab__text {
    height: 80px;
    line-height: 80px;
    border: none;
  }
  .py {
    font-size: 24px;
    width: 90%;
    margin: 0 auto;
    .p-tit {
      width: 100%;
      height: 110px;
      margin-top: 50px;
      display: flex;
      .tit-img {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background-color: #cecece;
      }
      .tit-p {
        display: flex;
        flex-direction: column;
        flex: 1;
        h3 {
          flex: 1;
          font-size: 32px;
          text-indent: 20px;
          line-height: 60px;
          span {
            font-size: 30px;
            // text-align: center;
            line-height: 50px;
            width: 70px;
            // display: inline-block;
            height: 50px;
            border-radius: 13px 13px 13px 0px;
            background-color: rgba(190, 190, 190, 100);
          }
        }
        p {
          flex: 1;
          font-size: 20px;
          text-indent: 20px;
        }
      }
    }
    .p-tex {
      font-size: 28px;
      line-height: 50px;
      margin-top: 10px;
    }
    .d-one {
      width: 100%;
      height: 150px;
      background-color: #efefef;
      padding: 25px 25px;
      margin:  50px 0;
      display: flex;
      .one-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background-color: #cecece;
      }
      .one-p {
        display: flex;
        flex-direction: column;
        color: #bebebe;
        text-indent: 20px;
        h3 {
          flex: 1;
          font-size: 28px;
          line-height: 50px;
          span {
            background-color: rgba(190, 190, 190, 100);
            color: white;
            border-radius: 20px;
          }
        }
        p {
          flex: 1;
          font-size: 25px;
          // background-color: #CECECE;
        }
      }
    }
    .d-tow {
      width: 100%;
      height: 310px;
      background-color: #efefef;
      padding: 35px;
      // display: flex;
      .tow-box {
        width: 100%;
        height: 100px;
        display: flex;
        .tow-img {
          width: 100px;
          height: 100px;
          border-radius: 50%;
          background-color: #cecece;
        }
        .tow-p{
            // flex: 1;
            display: flex;
            flex-direction: column;
            color: #bebebe;
            
            h3{
                flex: 1;
                font-size: 28px;
                line-height: 50px;
            }
            p{
                flex: 1;
                font-size: 25px;
                span{
                    color: white;
                    background-color: rgba(190, 190, 190, 100);
                    border-radius: 20px;
                }
            }
        }
      }
    }
  }
//   右下跳转按钮
    .click{
        width: 110px;
        height: 110px;
        position: absolute;
        bottom:200px;
        right: 50px;
        border-radius: 50%;
        background-color: rgba(206, 206, 206, 100);
        display: flex;
        align-items: center;
        justify-content: center;
        .van-icon-add{
            color: white;
        }
    }
    .lef{
        color: white;
        font-size: 40px;
        position: absolute;
        left: 30px;
        top: 25px;
    }
}
</style>